package com.alex.designPattern.facade;

/**
 * 客户端使用facade进行process，而不需要直接和ProcessA/B/C进行通信
 * @author alex
 *
 */
public class Client {
	
	public static void main(String[] args) {
		ProcessA pa = new ProcessA();
		ProcessB pb = new ProcessB();
		ProcessC pc = new ProcessC();
		
		Facade facade = new Facade();
		facade.setProcessA(pa);
		facade.setProcessB(pb);
		facade.setProcessC(pc);
		
		facade.process();
	}
}
